package cn.wolfcode.trip.base.query;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.util.StringUtils;

@Getter
@ToString
@Setter
public class QueryObject {
	private int currentPage =1;
	private int pageSize =3;
	private String keyword;

	//设置排序
	private String orderBy;
	
	public String getKeyword(){
		return StringUtils.hasLength(keyword)?keyword:null;
	}

}
